import sys

print("Hello Python World!")

print("-------------")

message = "Hello Python World!"
print(message)

#这里的变量重新赋值
message = "Hello Python Crash Course World!"
print(message)

name = "ada lovelace"
print(name.title())

first_name = "ada"
last_name = "lovelace"
# full_name = "{} {}".format(first_name,last_name)
full_name = f"{first_name} {last_name} "
print(full_name)
print(full_name.title())


#删除空格
favorite_language = 'python '
print(favorite_language)
favorite_language = favorite_language.rstrip()
print(favorite_language)

favorite_language = " python "
print("-"+favorite_language.rstrip()+"-")
print("-"+favorite_language.lstrip()+"-")
print(favorite_language.strip())


#数
#整数
print("--------")
#这里数字可以通过下划线来进行隔断，主要的目的是为了易读
universe_age = 14_000_000_000
print(universe_age)

#表示常量
MAX_CONNECTIONS = 5000
print(MAX_CONNECTIONS)

numberList = [1, 2, 3, 4, 5]
print(numberList)

for number in numberList:
    print(number)
for i in range(1,6):print("%d 颗糖" % i)

print(1>4)


